home *** CD-ROM | disk | FTP | other *** search
- #include <iostream.h>
- #include "bADs Constants.h"
-
- #pragma options align=mac68k
- typedef struct {
- long magicNumber;
- long versionNumber;
- ProcPtr theTable[2];
- } ESAddressTable;
- #pragma options align=reset
-
-
- void main(void)
- {
-
- ESAddressTable *theAddressTable;
- long oldAddr;
-
- Gestalt(kbADsAddressTable, (long *) &theAddressTable);
- oldAddr = (long) theAddressTable->theTable[kNewSysError];
-
- cout << "The address table: " << hex << (long) theAddressTable << endl;
-
- cout << "The old SysError: " << hex << oldAddr << endl;
- }
-
-